package com.app.backend.activiti.serviceImpl.mybatis;

import cn.hutool.core.util.StrUtil;
import com.app.backend.activiti.dao.mybatis.ActMapper;
import com.app.backend.activiti.service.mybatis.IActService;
import com.app.backend.common.exception.AppException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: IActServiceImpl
 * @description:
 * @author: Zhun.Xiao
 * @create: 2020-03-04 09:25
 **/
@Service
public class IActServiceImpl implements IActService {

    @Autowired
    private ActMapper actMapper;

    @Override
    public Integer deleteBusiness(String table, String id) {
        if(StrUtil.isBlank(table)||StrUtil.isBlank(id)){
            throw new AppException("关联业务表名或id为空");
        }
        return actMapper.deleteBusiness(table, id);
    }
}